import Layout from '@/pages/public/layout' // 公共部分

const bargain = [{
  path: '/promotion/bargain/',
  component: Layout,
  children: [{
    path: 'list',
    component: () => import('@/pages/market/promotion/bargain/index.vue'),
    meta: {
      title: '砍价-列表',
      permission: 'market.promotion.bargain.list'
    }
  }, {
    path: 'create',
    component: () => import('@/pages/market/promotion/bargain/create.vue'),
    meta: {
      title: '砍价-新建',
      permission: 'market.promotion.bargain.create'
    }
  }, {
    path: ':id/edit',
    component: () => import('@/pages/market/promotion/bargain/edit.vue'),
    meta: {
      title: '砍价-编辑',
      permission: 'market.promotion.bargain.edit'
    }
  }, {
    path: ':id/report',
    component: () => import('@/pages/market/promotion/bargain/report/index.vue'),
    meta: {
      title: '砍价-报表',
      permission: 'market.promotion.bargain.report'
    }
  }]
}]

export default bargain
